<nz-modal [(nzVisible)]="isVisible" nzTitle="从指标池选择指标" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"
  [nzFooter]="null">
  <sf #sf mode="search" [schema]="searchSchema" [button]="sfButton" 
 ></sf>
  <div *ngIf="bqlist" class="bq-list clearfix">
    <a *ngFor="let bqitem of bqlist;let i= index;"
      [ngStyle]="{color: '#FFF', background: zbThemeCheckedIndexes.includes(i) ?bqitem.color: '#ccc'}"
     >{{bqitem.label}}</a>
  </div>
  <lb-grid class="margin-top" #st [columns]="zbcolumns" [sname]="params.sname"
    [queryparas]="{para: params.form}"  [loading]="stloading"></lb-grid>
</nz-modal>



<div sg-container="4">
  <sg>

    <div class="flex align-center"  style="padding-bottom: 10px;" >
      <div class="">指标</div>
      <button class="margin-left" nz-button nzSize="small" nzType="primary" nzShape="circle" (click)="showModal()"><i
          nz-icon nzType="plus" nzTheme="outline"></i></button>
      <a class="margin-left" (click)="clearSelect()">清空</a>
    </div>

    <nz-list [nzDataSource]="zbdata" nzBordered nzSize="small" [nzRenderItem]="smallItem">
      <ng-template #smallItem let-item>
        <nz-list-item [nzContent]="item.DAA022">
          <button class="margin-left" nz-button nzSize="small" nzType="primary" nzShape="circle" (click)="pz(item)"><i
            nz-icon nzType="edit" nzTheme="outline"></i></button>
        </nz-list-item>
      </ng-template>
    </nz-list>

  </sg>
  <sg col="2">

    <sv-container style="padding-bottom: 10px;">
      <sv-title>{{selectItem.DAA020}} {{selectItem.DAA022}}</sv-title>
    </sv-container>

    <nz-tabset>
      <nz-tab nzTitle="指标聚合配置">
        <sf #sf [schema]="schema" [formData]="formData" (formSubmit)="formSubmit($event)"></sf>
      </nz-tab>
      <nz-tab nzTitle="图表配置">
        <sf #sf2 [schema]="schema2" [formData]="formData2" ></sf>
      </nz-tab>
      
    </nz-tabset>
   
   

    
  </sg>

</div>



<textarea rows="4" nz-input [ngModel]="pzxx"></textarea>